<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <title>基础数据平台</title>
    <link rel="stylesheet" href="../../static/js/plug-in/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../static/js/plug-in/font-awesome/css/font-awesome.min.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/dist/css/AdminLTE.css"/>
    <link rel="stylesheet" href="../../static/js/plug-in/dist/css/skins/_all-skins.min.css"/>
    
    <link rel="stylesheet" href="../../static/css/public/public.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/my-form-prompt/css/form-prompt.css">
    <link rel="stylesheet" href="../../static/js/plug-in/jqueryConfirm/css/jquery-confirm.min.css" />
	  
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <header class="main-header" id="_header"></header>
        <aside class="main-sidebar" id="_left"></aside>


        <div class="content-wrapper">
            <section class="content-header">
                <h1>接口管理</h1>
                <ol class="breadcrumb">
                    <li>
                        <a href="index.html"><i class="fa fa-dashboard"></i>首页</a>
                    </li>
                    <li>
                        <a href="interface.html">接口管理</a>
                    </li>
                    <li>
                        <a href="interface.html">接口信息</a>
                    </li>
                </ol>
            </section>
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header">
                                <div class="navbar">
                                    <ul class="nav navbar-nav">
                                        <li class="pull-left">
                                            <a class="j-school-add" href="interface-add.html">添加接口</a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="row">
                                    <ul class="col-xs-8 nav navbar-nav">
                                        <li class="col-xs-4">
                                            <select class="form-control" id="checkStatus">
                                                <option value="all">选择接口状态</option>
                                                <option value="1">启用</option>
                                                <option value="0">禁用</option>
                                            </select>
                                        </li>
                                      
                                    </ul>
                                    <form class="col-xs-3 pull-right">
                                        <div class="input-group">
                                            <input type="text" class="form-control" placeholder="请输入接口名称" id="mname"/>
                                            <span class="input-group-btn">
                                                <button class="btn btn-info" type="button" id="seacher">搜索</button>
                                            </span>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <div class="box-body m-mi-he">
                                <table class="table table-bordered table-hover table-condensed table-striped text-center" id="j-table-1">
                                    <thead>
                                    <tr>
                                        <th>接口编号</th>
                                        <th>接口名称</th>
                                        <th>所属系统</th>
                                        <th>接口描述</th>
                                        <th>接口url</th>
                                        <th>请求方式</th>
                                        <th>接口状态</th>
                                        <th>对应系统版本</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody id="cass">
	                                	<tr>
	                                		<td>1</td>
	                                		<td>测试接口</td>
	                                		<td>v 1.0</td>
	                                		<td>http://127.0.0.1:8080/sit</td>
	                                		<td>测试数据</td>
	                                		<td>GET</td>
	                                		<td>启用</td>
	                                		<td>测试数据</td>
	                                		<td>
	                                			<button type="button" class="btn btn-info btn-xs j-user-set" onclick="edit(1);">修改</button>
            									<button type="button" class="btn btn-danger btn-xs j-user-info-see" onclick="delmenu('{{= item.menuId}}')">删除</button>
	                                		</td>
	                                	</tr>
                                    	
                                    </tbody>
                                </table>
                                
                                <div id="fenye"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        
        <footer class="main-footer" id="_footer"></footer>
        <div class="control-sidebar-bg"></div>
    </div>

</body>
<!--[if IE 9]>
<script src="../../static/js/plug-in/jquery/jquery-1.11.0.js"></script>
<![endif]-->
<script src="../../static/js/plug-in/jquery/jquery-2.2.3.min.js"></script>
<script src="../../static/js/plug-in/bootstrap/js/bootstrap.min.js"></script>
<script src="../../static/js/plug-in/dist/js/app.min.js"></script>
<script src="../../static/js/plug-in/dist/js/demo.js"></script>
<script src="../../static/js/public/public.js"></script>
<script src="../../static/js/externalr.js"></script>  
<script src="../../static/js/utils.js"></script>
<link rel="stylesheet" href="../../static/js/layui/css/layui.css">
<script src="../../static/js/jquery.tmpl.min.js"></script>
<script  src="../../static/js/layui/layui.js"></script>
<script id="menusTemplate" type="text/x-jquery-tmpl">
{{each(i,item) _menus}}
    <tr>
        <td>{{= item.menuId}}</td>
        <td>{{= item.menuName}}</td>
        <td>{{= item.menuDesc}}</td> 
        <td class="j-type" typeid="1">
        	 {{if item.status==1}}
            	启用
        	{{else}}
           		禁用
           	{{/if}}
        	</td>
        <td>
            <button type="button" class="btn btn-info btn-xs j-user-set" onclick="edit('{{= item.menuId}}');">修改</button>
            <button type="button" class="btn btn-danger btn-xs j-user-info-see" onclick="delmenu('{{= item.menuId}}')">删除</button>
        </td>
    </tr>
{{/each}}
</script>
<script type="text/javascript">
	
	function edit(id){
		window.location.href="interface-add.html?id="+id;
	}
</script>
</html>